package producer;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;
import producer.filter.TokenFilter;

@SpringBootApplication
@EnableZuulProxy
public class EurekaZuulServerApplication {
    public static void main(String[] args) {
        SpringApplication.run( EurekaZuulServerApplication.class , args );
        System.out.println("finsh.");
    }

    @Bean
    public TokenFilter tokenFilter(){
        return new TokenFilter();
    }
}
